setFont

abstract fun setFont(block: DesignBlock, fontFileUri: Uri, typeface: Typeface)

Sets the given font and typeface for the text block. Existing formatting is reset. Required scope: "text/character"

Saved scenes, archives, and blocks use content-based typeface IDs. Upgrade all readers to support these IDs before saving content with this engine.

Parameters

block

the text block whose font should be changed.

fontFileUri

the Uri of the new font file.

typeface

the typeface of the new font.